//
// Tooltips
// --------------------------------------------------


// Base class
.tooltip {
  position: absolute;
  z-index: $zindex-tooltip;
  display: block;
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
  // So reset our font and text properties to avoid inheriting weird values.
  @include reset-text;
  font-size: $font-size-small;

  @include opacity(0);

  &.in     { @include opacity($tooltip-opacity); }
  &.top    { margin-top:  -3px; padding: $tooltip-arrow-width 0; }
  &.right  { margin-left:  3px; padding: 0 $tooltip-arrow-width; }
  &.bottom { margin-top:   3px; padding: $tooltip-arrow-width 0; }
  &.left   { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
}

.tooltip-default{
   @include tooltip-variant($tooltip-deault-color,$tooltip-deault-bg);
 }

.tooltip-primary{
  @include tooltip-variant($tooltip-primary-color,$tooltip-primary-bg);
}

.tooltip-success{
  @include tooltip-variant($tooltip-success-color,$tooltip-success-bg);
}

.tooltip-info{
  @include tooltip-variant($tooltip-info-color,$tooltip-info-bg);
}

.tooltip-warning{
  @include tooltip-variant($tooltip-warning-color,$tooltip-warning-bg);
}

.tooltip-danger{
  @include tooltip-variant($tooltip-danger-color,$tooltip-danger-bg);
}